home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / source / lib / chunky_lib.lha / Chunky / HLineFast.ass < prev    next >
Encoding:
Text File  |  2000-11-11  |  374 b   |  21 lines

  1.  
  2. ; HLineFast(chunky:a0:PTR TO chunky,x1:d0:LONG,x2:d1:LONG,y:d2:LONG,colour:d3:LONG)(LONG)
  3.  
  4.     machine    mc68020
  5.  
  6.     xdef    _HLineFast
  7.  
  8. _HLineFast
  9.     move.l    d2,-(a7)
  10.  
  11.     muls.l    (a0),d2
  12.     add.l    d0,d2        ; d2 contains position of first pixel
  13.     sub.l    d0,d1        ; d1 contains count of pixels
  14.     add.l    d2,a1        ; set first position
  15.  
  16. .loop    move.b    d3,(a1)+
  17.     dbra.s    d1,.loop
  18.  
  19. .finish    move.l    (a7)+,d2
  20.     rts
  21.